package com.ccsoft.atools.enums;

/**
 * @author chanchaw
 * @create 2023-03-13 13:02
 */
public enum StringEnum {
    SYSTEM_USER("系统")
    ;
    private String value;

    public String getValue() {
        return value;
    }

    StringEnum(String value) {
        this.value = value;
    }

    public static StringEnum get(String name) {
        if (name == null || name.length() <= 0) return null;
        for (StringEnum e : values()) {
            if (e.getValue().equals(name)) return e;
        }
        return null;
    }
}
